import { createStore, combineReducers } from 'redux';
import { CountReducer } from "./reducer"
import { ListReducer } from './listReducer'
// 把多个reducer合并为1个reducer;
let reducer = combineReducers({
  'a': CountReducer,
  'b': ListReducer
});
const store = createStore(reducer)
console.log("store", store.getState()) //{a:{},b:{}}
// 单个reducer创建store:
// const store = createStore(CountReducer);
// console.log("store", store)
export default store;